/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package object;
/**
 *
 * @author Le Thai
 */
public class Human {
    protected int id;
    protected String lastName;
    protected String firstName;
    protected boolean gender; //True if male
    protected String dayOfBirth;
    protected String homeAddress;
    
    public Human(){
        id=0;
        lastName="";
        firstName="";
        dayOfBirth="";
        gender=true;
        homeAddress="";
    }
    
    public Human(   int id, String lastName, String firstName,
                    boolean gender, String dayOfBirth, String homeAddress)
    {
        
        this.id=id;
        this.lastName=lastName;
        this.firstName=firstName;
        this.dayOfBirth=dayOfBirth;
        this.gender=gender;
        this.homeAddress=homeAddress;
    }
    
    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the lastName
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * @param lastName the lastName to set
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /**
     * @return the firstName
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * @param firstName the firstName to set
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /**
     * @return the gender
     */
    public boolean isGender() {
        return gender;
    }

    /**
     * @param gender the gender to set
     */
    public void setGender(boolean gender) {
        this.gender = gender;
    }

    /**
     * @return the dayOfBirth
     */
    public String getDayOfBirth() {
        return dayOfBirth;
    }

    /**
     * @param dayOfBirth the dayOfBirth to set
     */
    public void setDayOfBirth(String dayOfBirth) {
        this.dayOfBirth = dayOfBirth;
    }

    /**
     * @return the homeAddress
     */
    public String getHomeAddress() {
        return homeAddress;
    }

    /**
     * @param homeAddress the homeAddress to set
     */
    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }
}
